package com.xl.generator.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xl.generator.domain.CommunityPost;
import com.xl.generator.dto.CommunityPostDto;
import com.xl.generator.service.CommunityPostService;
import com.xl.generator.mapper.CommunityPostMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author Nannan
* @description 针对表【community_post】的数据库操作Service实现
* @createDate 2022-11-12 22:31:50
*/
@Service
public class CommunityPostServiceImpl extends ServiceImpl<CommunityPostMapper, CommunityPost>
    implements CommunityPostService{

    @Resource
    private CommunityPostMapper communityPostMapper;

    @Override
    public List<CommunityPostDto> getPostList(IPage page, int parentId) {
        return communityPostMapper.getPostList(page,parentId);
    }
}




